package com.stox.client.embedded;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stox.client.ScripClient;
import com.stox.manager.ScripManager;
import com.stox.model.Scrip;

@Component
public class EmbeddedScripClient implements ScripClient {

	@Autowired
	private ScripManager scripManager;
	
	public List<Scrip> findByExchangeCode(String exchangeCode) {
		return scripManager.findByExchangeCode(exchangeCode);
	}

}
